package member

import (
	"context"
	"hotgo/internal/service"

	"hotgo/api/api/member/v1"
)

func (c *ControllerV1) Info(ctx context.Context, req *v1.InfoReq) (res *v1.InfoRes, err error) {
	data, err := service.AdminMember().LoginMemberInfo(ctx)
	if err != nil {
		return
	}

	res = new(v1.InfoRes)
	res.LoginMemberInfoModel = data
	return
}
